package com.baosight.risk.mapper.riwa;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.riwa.entity.RiwaRiskWaringStatus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RiwaRiskWaringStatusMapper extends BaseMapper<RiwaRiskWaringStatus> {

    List<RiwaRiskWaringStatus> getWaringStatusByWaringId(@Param("warningModelGuid") String warningModelGuid);

    Integer deleteByWaringId(@Param("warningModelGuid") String warningModelGuid);


    /**
     * 通过重点风险id  和风险预警模型id 得到风险预警状态
     *
     * @param importId
     * @param warningModelGuid
     * @return
     */
    RiwaRiskWaringStatus getRiwaStatusByImportIdAndWaringId(@Param("importId") String importId, @Param("warningModelGuid") String warningModelGuid);


}